import { Tag } from "antd"
import "./index.css"

interface Props {
  tags?: string[]
}

/**
 * 标签列表
 *
 * @param props
 */
const TagList = (props: Props) => {
  const { tags = [] } = props

  return (
    <div className="tag-list">
      {tags.map((tag) => {
        return <Tag key={tag}>{tag}</Tag>
      })}
    </div>
  )
}

export default TagList
